
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <g:javascript library="prototype" />
         <g:javascript library="prototype/effects"/>
        <title>月报表查询</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="home" controller="management" action="main">返回主菜单</g:link></span>
            <span class="menuButton"><g:link class="list" action="list">产品列表</g:link></span>
        </div>
        <div class="body">
            <h1>月报表查询</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div id="message">
            </div>
            <g:form controller="product" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                          <tr class='prop'>
                            <td valign='top' class='name'>
                              <label for='startDate'>开始查询年月</label>
                            </td>
                            <td valign='top' >
                              <!--<input type="text" id='year' name='year'/>年-->
                              <g:datePicker name="startDate" value="${new Date()}" precision="day"></g:datePicker>
                            </td>
                          </tr>
                          <tr class='prop'>
                            <td valign='top' class='name'>
                              <label for='endDate'>结束查询年月</label>
                            </td>
                            <td valign='top' >
                              <!--<input type="text" id='month' name='month'/>月-->
                              <g:datePicker name="endDate" value="${new Date()}" precision="day"></g:datePicker>
                            </td>
                          </tr>
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button">
                    <g:submitToRemote action="monthProductReport" update="message" value="月报表查询" onComplete="new Effect.Grow('message');"/>
                    </span>
                </div>
            </g:form>

        </div>
    </body>
</html>
